package spectra.android;


import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class Telephone extends Activity {
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
		Button callButton = (Button) findViewById(R.id.callButton);
		
		callButton.setOnClickListener(new View.OnClickListener() {

			public void onClick(View view) {
				EditText noToDialEdit = (EditText) findViewById(R.id.noToDialEdit);
				String no = noToDialEdit.getText().toString();
				startActivity(new Intent(Intent.ACTION_DIAL,Uri.parse("tel:" + no)));

			}
		});
		
		
        
    }
    

    
    
    
}